() {transferer. expenditure (amount); payer. deposit (amount) ;}} class Start1 {public void Main () {bank account Zhang San = new bank account {card number = 111, balance = 10000 }; bank account Li Si = new bank account {card number = 222, balance = 5}; bank transfer operation transfer = new bank transfer operation (); Transfer. amount = 1000; transfer. transferor = James; transfer. recipient = Li Si; transfer money. transferring money () ;}} copying code S
creating models. certainly got people get value out of these aspects of OO. the principles, however, focus very tightly on dependency management.
Dependency management is an issue that most of us have faced. whenever we bring up on our screens a nasty batch of tangled legacy code, we are experiencing the results of poor dependency management. poor dependency managment leads to code that is hard to change, fragile, and non-reusable. indeed, I talk abo
Labels: Easy SRP als construction for building subclass applications
Solid principles that every developer should know
Single Responsibility Principle (SRP)
Why does it violate SRP?
What problems will this design bring in the future?
Open/closed principle (OCP)
How to Make It (animalsound) conform to OCP?
LSP)
Interface isolation principle (ISP)
Depende
In-depth understanding of the JavaScript series: the principle of solid five principles of interface isolation ISPObjectiveIn this chapter we are going to explain the 4th of the S.o.l.i.d Five principles of JavaScript implementation, the interface isolation principle of the ISP (the Interface segregation Principle).English Original: http://freshbrewedcode.com/der
reversal) is by Robert? C. Martin's acronym for memorization, introduced in the early 21st century [1], refers to the five basic principles of object-oriented programming and object-oriented design. When these principles are applied together, they make it more possible for a programmer to develop a system that is easy for software maintenance and expansion. s
S.O.L.I.D is the acronym for several important coding principles (programming Priciple) in object-oriented design and programming (Oodoop).
SRP
the single Responsibility principle
single responsibility principle
OCP
the Open Closed principle
LSP
The Liskov Substitution Principle
Richter substitution principle
DIP
the Dependency inver
the programmer should have the-solid principle of artistic temperament. S.O.L.I.D is the acronym for several important coding principles (programming Priciple) in object-oriented design and programming (Oodoop).
SRP
The single Responsibility Principle
Single Responsibility Principle
Ocp
The Open Closed Principle
Open Closure principle
Lsp
Th
Interestingly, the Five Principles of OO can be abbreviated as one word:Solid(Stability and stability) In fact, an organization should be stable. If it is not internally united (cohesion), how can it be stable! If cohesion is not high, the internal revolution will happen when there is a new change!
How to explain solid? It is actually the first letter of the five words:
1.S:Single Responsibility Principle
Solid is an abbreviation for several important coding principles
Srp:the Single Responsibility Principle sole responsibility principle
Ocp:the Open Closed Principle opening and closing principle
lsp:the Liskov Substitution Principle Richter Replacement principleLd:the Law of Demeter Dimitri
Isp:the Interface Segregation Principle Interface separation principle
Dip:the Dependency Inversion Principle depen
How to learn C language well? Why do you have to learn neither deep nor solid, dabbler feelingI believe that this may be a lot of friends of the problem, I have such a feeling before, programming to a certain time, the ability to find the bottleneck, neither deep nor solid, dabbler. For example: You use Java and. NET for a long time, these languages with virtual
C # Set the background of a Word document (solid color/gradient/image background ),
Word is an essential tool for document processing in our daily life, study, and work. Exquisite and beautiful documents can provide a visual aesthetic for reading. This article describes how to use the Free Spire. Doc for. NET (Community edition) component to set the document background for Word. In the following example, ad
Solve the usage of the cache file of Solid Converter PDF to drive C
The usage of the cache file of Solid Converter PDF to drive C was encountered on April 9, May 29, 2013. Today, I encountered another problem. When reading the document, I want to convert a kdh file (many of the documents in net are in this format) int
Basic principles and practice of Linux C programming (2018-06-16-19:12:15)Basic principles and practice of Linux C language programmingEfficient learning with Purpose: what to do and how to use itRe-knowledge of C language
C
Stroustrup, father of C ++, launched "C ++ Core Principles"
The C ++ Conference of 2015 was held in Bellevue, Washington, USA on September 20-25. Bjarne Stroustrup, father of C ++, announcedC ++ Core PrinciplesC ++ Core Guidelines ).This guideline aims to help programmers
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.